﻿using System;
using System.Diagnostics ;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms ;
using System.IO ;

namespace LMA
{
  class CMD
  {
  	static string testFile =@"D:\TestFile.TXT" ;
  	
  	public void init(object sender) {
  		
  	}
  	
    public void OnCommand(/* Decide on arguments */) {
    	StreamWriter writer =new StreamWriter(testFile, false) ;
    	Debug.WriteLine( "CMD.OnCommand" ) ;
    	writer.WriteLine( "CMD.OnCommand" ) ;
		//MessageBox.Show( "CMD.OnCommand" ) ;
		
		writer.Close() ;
    }

    public static void OnCommandStatic(/* Decide on arguments */) {
  		StreamWriter writer =new StreamWriter(testFile, true) ;
  		Debug.WriteLine( "CMD.OnCommandStatic" ) ;
  		writer.WriteLine( "CMD.OnCommandStatic" ) ;
		//MessageBox.Show( "CMD.OnCommandStatic" ) ;
		writer.Close() ;
    }
  } // class CMD
} // namespace LMA
